package com.celesea.workflow.core.entity;

import com.celesea.framework.entity.BusEntity;
import com.celesea.framework.util.Version;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author JackYuan
 * @create 2017-11-20 09:57
 */
@Version
@Table(name = "wf_notice")
public class WorkflowNotice extends BusEntity {
    @Column(name = "`workflow_status`", columnDefinition = "流程节点状态", nullable = false, updatable = false)
    private Integer workflowStatus;
    @Column(name = "`workflow_type`", columnDefinition = "流程类型", nullable = false, updatable = false)
    private Integer workflowType;
    @Column(name = "`instance_id`", columnDefinition = "流程实例ID", nullable = false, updatable = false)
    private String instanceId;
    @Column(name = "`owner_id`", columnDefinition = "流程节点拥有人Id", nullable = false, updatable = false)
    protected String ownerId;
    @Column(name = "`owner_name`", columnDefinition = "流程节点拥有人名称", nullable = false, updatable = false)
    protected String ownerName;
    @Column(name = "`summary`", columnDefinition = "流程摘要", nullable = false)
    protected String summary;
    @Column(name = "`notice_time`", columnDefinition = "通知时间", nullable = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date noticeTime;

    public Integer getWorkflowStatus() {
        return workflowStatus;
    }

    public void setWorkflowStatus(Integer workflowStatus) {
        this.workflowStatus = workflowStatus;
    }

    public Integer getWorkflowType() {
        return workflowType;
    }

    public void setWorkflowType(Integer workflowType) {
        this.workflowType = workflowType;
    }

    public String getInstanceId() {
        return instanceId;
    }

    public void setInstanceId(String instanceId) {
        this.instanceId = instanceId;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Date getNoticeTime() {
        return noticeTime;
    }

    public void setNoticeTime(Date noticeTime) {
        this.noticeTime = noticeTime;
    }


}

